package io.gitee.bluemiaomiao.dataanalyzebackend.controller;

import io.gitee.bluemiaomiao.dataanalyzebackend.util.ResultCodeUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @description 测试封装类CommonResult
 */
@Slf4j
@RestController
@RequestMapping(value = "/Test")
public class TestController {

  @PostMapping(value = "/cs")
  public ResultCodeUtil<String> ExcelTest(
      @RequestParam("username") String username, @RequestParam("password") String password) {
    System.out.println(username + password);
    return ResultCodeUtil.success("chengg");
  }
}
